import request from '@/utils/request'
//长者管理_列表
export function getUsersLists(query) {
    return request({
        url: '/joining/busin.Users/getLists',
        method: 'post',
        params: query
    })
}
// 长者管理_添加/编辑
export function setUsersInfo(query) {
    return request({
        url: '/joining/busin.Users/setInfo',
        method: 'post',
        params: query
    })
}

// 长者管理_详情
export function getUsersInfo(query) {
    return request({
        url: '/joining/busin.Users/getInfo',
        method: 'post',
        params: query
    })
}

// 长者管理_启用、禁用
export function setUsersStatus(query) {
    return request({
        url: '/joining/busin.Users/setStatus',
        method: 'post',
        params: query
    })
}

// PC_长者管理_修改登录密码
export function setUsersLoginPass(query) {
    return request({
        url: '/joining/busin.Users/setLoginPass',
        method: 'post',
        params: query
    })
}

// PC_长者管理_删除
export function delUsersInfo(query) {
    return request({
        url: '/joining/busin.Users/delInfo',
        method: 'post',
        params: query
    })
}

// PC_优惠券_全部可赠送优惠券列表
export function getGivenCouponsLists(query) {
    return request({
        url: '/joining/busin.Coupon/getGiveCouponListsAll',
        method: 'post',
        params: query
    })
}

// 赠送优惠券
export function setGiveCoupons(query) {
    return request({
        url: '/joining/busin.Coupon/setGive',
        method: 'post',
        params: query
    })
}

// PC_长者管理_全部可选上级列表(不分页)
export function getHigherListsAll(query) {
    return request({
        url: '/joining/busin.Users/getHigherListsAll',
        method: 'post',
        params: query
    })
}